home *** CD-ROM | disk | FTP | other *** search
/ Libris Britannia 4 / science library(b).zip / science library(b) / INFO / XFDISK.ZIP / CP3204.2R < prev    next >
Text File  |  1991-08-28  |  6KB  |  171 lines

  1. F 0100 07FF 0                                                             
  2. A 100                                                                    
  3. MOV AX,CS   ; get CS register                                            
  4. MOV DS,AX   ; initialize DS register                                     
  5. MOV ES,AX   ; initialize DS register                                     
  6. ;                                                                        
  7. MOV AH,30   ; get function code to check DOS version                     
  8. INT 21      ; call DOS routine to get version number                     
  9. CMP AL,5    ; check for DOS version 5.00 or higher                       
  10. JGE 112     ; JGE CONTINUE to partition fixed disk                       
  11. ;             otherwise, incorrect DOS version                           
  12. MOV AL,80   ; set ERRORLEVEL value to indicate incorrect DOS version     
  13. JMP 130     ; JMP ERROR                                                  
  14. ;                                                                        
  15. ;[CONTINUE]                                                              
  16. MOV SI,0003 ; initalize loop counter                                     
  17. ;                                                                        
  18. ;[LOOP]                                                                  
  19. MOV AH,03   ; get function code to write to disk                         
  20. MOV AL,02   ; get number of sectors to write                
  21. MOV BX,0200 ; ES:BX points to beginning of data                          
  22. MOV CX,0001 ; set CH to low order byte for cylinder number               
  23. ;             set CL lower 6-bits to sector number                       
  24. ;             set CL upper 2-bits to high order bits for cylinder number 
  25. MOV DH,00   ; get number for head (side)                                 
  26. MOV DL,81   ; get drive number for 2nd fixed disk          
  27. INT 13      ; call BIOS routine which provides disk services             
  28. JNC 0134    ; JNC WRITEOK if no error                                    
  29. ;             otherwise, . . .                                           
  30. MOV AH,0    ; get function code to reset disk system                     
  31. INT 13      ; call BIOS routine which provides disk services             
  32. DEC SI      ; decrement loop counter                                     
  33. JNZ 0115    ; JNZ LOOP to try to write to disk again                     
  34. ;             otherwise, . . .                                           
  35. MOV AL,02   ; set ERRORLEVEL value to indicate error                     
  36. ;           ; and . . .                                                  
  37. ;[ERROR]      terminate program with ERRORLEVEL value                    
  38. MOV AH,4C   ; get function code to teminate program                      
  39. INT 21      ; and exit program                                           
  40. ;                                                                        
  41. ;[WRITEOK]                                                               
  42. MOV AL,00   ; set ERRORLEVEL value to indicate success                   
  43. MOV AH,4C   ; get function code to teminate program                      
  44. INT 21      ; and exit program                                           
  45. NOP                                                                      
  46.                                                                        
  47. F 2E1 3FD 0 
  48. E 3FE 55 AA 
  49. A 400   
  50. JMP 43E 
  51. NOP     
  52.       
  53. E 403 "DWPerson"       
  54. E 40B 00 02            
  55. E 40D 02               
  56. E 40E 01 00            
  57. E 410 02               
  58. E 411 00 02            
  59. E 413 00 00            
  60. E 415 F8               
  61. E 416 CB 00            
  62. E 418 33 00            
  63. E 41A 0F 00            
  64. E 41C 01 00 00 00      
  65. E 420 67 96 01 00      
  66. E 424 81 
  67. E 425 00               
  68. E 426 29               
  69. E 427 31 08 91 19      
  70. E 42B "FDISK"          
  71. E 430 "2" 
  72. E 431 " VOL"            
  73. E 435 "?"               
  74. E 436 "FAT16   "        
  75. E 5FE 55 AA 
  76. E 600 F8 FF FF FF 
  77. E 3BE 00          
  78. E 3BF 00          
  79. E 3C0 02          
  80. E 3C1 00          
  81. E 3C2 05          
  82. E 3C3 0E          
  83. E 3C4 B3          
  84. E 3C5 1F          
  85. E 3C6 01 00 00 00 
  86. E 3CA 9F 59 06 00 
  87. E 5BE 00          
  88. E 5BF 00          
  89. E 5C0 02          
  90. E 5C1 00          
  91. E 5C2 06          
  92. E 5C3 0E          
  93. E 5C4 33          
  94. E 5C5 87          
  95. E 5C6 01 00 00 00 
  96. E 5CA 67 96 01 00 
  97. E 5CE 00          
  98. E 5CF 00          
  99. E 5D0 01          
  100. E 5D1 88          
  101. E 5D2 05          
  102. E 5D3 0E          
  103. E 5D4 73          
  104. E 5D5 0F          
  105. E 5D6 68 96 01 00 
  106. E 5DA 68 96 01 00 
  107. E 435 "1" 
  108.  G=100 138 
  109. F 5BE 5FD 0 
  110. E 3BE 00          
  111. E 3BF 00          
  112. E 3C0 02          
  113. E 3C1 88          
  114. E 3C2 06          
  115. E 3C3 0E          
  116. E 3C4 73          
  117. E 3C5 0F          
  118. E 3C6 01 00 00 00 
  119. E 3CA 67 96 01 00 
  120. E 3CE 00          
  121. E 3CF 00          
  122. E 3D0 41          
  123. E 3D1 10          
  124. E 3D2 05          
  125. E 3D3 0E          
  126. E 3D4 73          
  127. E 3D5 97          
  128. E 3D6 D0 2C 03 00 
  129. E 3DA 68 96 01 00 
  130. E 11D 01 88 
  131. E 435 "2" 
  132.  G=100 138 
  133. E 3BE 00          
  134. E 3BF 00          
  135. E 3C0 42          
  136. E 3C1 10          
  137. E 3C2 06          
  138. E 3C3 0E          
  139. E 3C4 73          
  140. E 3C5 97          
  141. E 3C6 01 00 00 00 
  142. E 3CA 67 96 01 00 
  143. E 3CE 00          
  144. E 3CF 00          
  145. E 3D0 41          
  146. E 3D1 98          
  147. E 3D2 05          
  148. E 3D3 0E          
  149. E 3D4 B3          
  150. E 3D5 1F          
  151. E 3D6 38 C3 04 00 
  152. E 3DA 68 96 01 00 
  153. E 11D 41 10 
  154. E 435 "3" 
  155.  G=100 138 
  156. E 3BE 00          
  157. E 3BF 00          
  158. E 3C0 42          
  159. E 3C1 98          
  160. E 3C2 06          
  161. E 3C3 0E          
  162. E 3C4 B3          
  163. E 3C5 1F          
  164. E 3C6 01 00 00 00 
  165. E 3CA 67 96 01 00 
  166. F 3CE 3DD 0 
  167. E 11D 41 98 
  168. E 435 "4" 
  169.  G=100 
  170.